# $Id: setup.py 132 2008-08-04 06:05:51Z casey.duncan $

import sys
from distutils.core import setup, Extension

if sys.platform != 'win32':
	compile_args = ['-ftree-vectorize', '-ftree-vectorizer-verbose=5']
else:
	# XXX insert win32 flag to unroll loops here
	compile_args = []
compile_args = [] # disable compile args for now

setup(
	name='particle',
    version='0.1d',
	description='Python particle engine',
	long_description='''\
Blah Blah Blah
''',
	author='Casey Duncan, Harry Tormey & Contributors',
	author_email='casey.duncan@gmail.com',
	url='http://code.google.com/p/caseman',
    classifiers = [
        'Development Status :: 2 - Pre-Alpha',
        'Topic :: Multimedia :: Graphics',
        'License :: OSI Approved :: MIT License',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
    ],

    package_dir={'particle': ''},
    packages=['particle'],
	ext_modules=[
		Extension('particle.group', 
			['group.c', 'vector.c', 'groupmodule.c'], 
			extra_compile_args=compile_args,
		),
		Extension('particle.renderer', 
			['group.c', 'renderermodule.c'], 
			extra_compile_args=compile_args,
		),
		Extension('particle._controller', 
			['group.c', 'vector.c', 'controllermodule.c'], 
			extra_compile_args=compile_args,
		),
		Extension('particle._emitter', 
			['group.c', 'vector.c', 'fastrng.c', 'emittermodule.c'], 
			extra_compile_args=compile_args,
		),
	],
)
